#include"mystdio.h"
int main()
{
  _FILE* fp = _fopen("./log.txt","w");
  if(fp == NULL)
    return 2;
  const char* msg = "hello world";
  int cnt = 10;
  while(cnt--)
  {
    _fwrite(msg,strlen(msg),fp);
    printf("cnt : %d\n",cnt);
    if(cnt%5 ==0)
    _fflush(fp);
    sleep(1);
  }
  _fclose(fp);
}
